package com.lqk.controller;

import com.lqk.entity.CitizenInfoEntity;
import com.lqk.service.CitizenInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liqiankun@nnuo.com
 * @date 2023/3/10 17:21
 * @description 公民信息-业务控制层
 **/
@RestController
@RequestMapping(value = "/citizen/info")
public class CitizenInfoController {
    @Autowired
    private CitizenInfoService citizenInfoService;
    @GetMapping("/test")
    public CitizenInfoEntity test(@RequestParam("idCard") String idCard) {
        return citizenInfoService.queryCitizenInfoByIdCard(idCard);
    }
}
